package controllers;
 
import models.User;
import play.mvc.Before;
import play.mvc.Controller;
import play.mvc.With;

@With(Secure.class)
public class Admin extends Controller {
    
    @Before
    static void setConnectedUser() {
        if(Security.isConnected()) {
            User user = Security.getConnected();
            if (user.arcadiano!=null)
            	renderArgs.put("user", user.arcadiano.nombre);
            else
            	renderArgs.put("user", user.username);
        }
    }
 
    
    
    public static void index() {
        render();
    }
    
}